home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 8268 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news text default
99% file C source text default
98% file C source, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 69 78 | 2e 6e 65 74 63 6f 6d 2e |Path: ix|.netcom.|
|00000010| 63 6f 6d 21 6e 65 77 73 | 0a 46 72 6f 6d 3a 20 4e |com!news|.From: N|
|00000020| 6f 72 6d 61 6e 20 42 75 | 6c 6c 65 6e 20 3c 6e 62 |orman Bu|llen <nb|
|00000030| 75 6c 6c 65 6e 40 69 78 | 2e 6e 65 74 63 6f 6d 2e |ullen@ix|.netcom.|
|00000040| 63 6f 6d 3e 0a 4e 65 77 | 73 67 72 6f 75 70 73 3a |com>.New|sgroups:|
|00000050| 20 63 6f 6d 70 2e 6c 61 | 6e 67 2e 63 0a 53 75 62 | comp.la|ng.c.Sub|
|00000060| 6a 65 63 74 3a 20 52 65 | 3a 20 62 6f 72 6c 61 6e |ject: Re|: borlan|
|00000070| 64 20 63 20 34 2e 35 0a | 44 61 74 65 3a 20 53 61 |d c 4.5.|Date: Sa|
|00000080| 74 2c 20 30 32 20 4d 61 | 72 20 31 39 39 36 20 31 |t, 02 Ma|r 1996 1|
|00000090| 31 3a 35 35 3a 35 35 20 | 2d 30 38 30 30 0a 4f 72 |1:55:55 |-0800.Or|
|000000a0| 67 61 6e 69 7a 61 74 69 | 6f 6e 3a 20 42 6c 61 63 |ganizati|on: Blac|
|000000b0| 6b 20 43 61 74 20 41 73 | 73 6f 63 69 61 74 65 73 |k Cat As|sociates|
|000000c0| 0a 4d 65 73 73 61 67 65 | 2d 49 44 3a 20 3c 33 31 |.Message|-ID: <31|
|000000d0| 33 38 41 37 43 42 2e 37 | 36 44 45 40 69 78 2e 6e |38A7CB.7|6DE@ix.n|
|000000e0| 65 74 63 6f 6d 2e 63 6f | 6d 3e 0a 52 65 66 65 72 |etcom.co|m>.Refer|
|000000f0| 65 6e 63 65 73 3a 20 3c | 34 68 39 75 35 6b 24 65 |ences: <|4h9u5k$e|
|00000100| 63 6a 40 72 7a 73 75 6e | 30 32 2e 72 72 7a 2e 75 |cj@rzsun|02.rrz.u|
|00000110| 6e 69 2d 68 61 6d 62 75 | 72 67 2e 64 65 3e 0a 4e |ni-hambu|rg.de>.N|
|00000120| 4e 54 50 2d 50 6f 73 74 | 69 6e 67 2d 48 6f 73 74 |NTP-Post|ing-Host|
|00000130| 3a 20 70 6c 65 2d 63 61 | 31 31 2d 31 39 2e 69 78 |: ple-ca|11-19.ix|
|00000140| 2e 6e 65 74 63 6f 6d 2e | 63 6f 6d 0a 4d 69 6d 65 |.netcom.|com.Mime|
|00000150| 2d 56 65 72 73 69 6f 6e | 3a 20 31 2e 30 0a 43 6f |-Version|: 1.0.Co|
|00000160| 6e 74 65 6e 74 2d 54 79 | 70 65 3a 20 74 65 78 74 |ntent-Ty|pe: text|
|00000170| 2f 70 6c 61 69 6e 3b 20 | 63 68 61 72 73 65 74 3d |/plain; |charset=|
|00000180| 75 73 2d 61 73 63 69 69 | 0a 43 6f 6e 74 65 6e 74 |us-ascii|.Content|
|00000190| 2d 54 72 61 6e 73 66 65 | 72 2d 45 6e 63 6f 64 69 |-Transfe|r-Encodi|
|000001a0| 6e 67 3a 20 37 62 69 74 | 0a 58 2d 4e 45 54 43 4f |ng: 7bit|.X-NETCO|
|000001b0| 4d 2d 44 61 74 65 3a 20 | 53 61 74 20 4d 61 72 20 |M-Date: |Sat Mar |
|000001c0| 30 32 20 20 32 3a 30 37 | 3a 33 38 20 50 4d 20 43 |02 2:07|:38 PM C|
|000001d0| 53 54 20 31 39 39 36 0a | 58 2d 4d 61 69 6c 65 72 |ST 1996.|X-Mailer|
|000001e0| 3a 20 4d 6f 7a 69 6c 6c | 61 20 32 2e 30 20 28 57 |: Mozill|a 2.0 (W|
|000001f0| 69 6e 31 36 3b 20 49 29 | 0a 54 6f 3a 20 4d 69 63 |in16; I)|.To: Mic|
|00000200| 68 61 65 6c 20 4c 65 75 | 73 63 68 6e 65 72 20 3c |hael Leu|schner <|
|00000210| 6d 6c 65 75 73 63 68 40 | 72 7a 64 73 70 63 31 2e |mleusch@|rzdspc1.|
|00000220| 69 6e 66 6f 72 6d 61 74 | 69 6b 2e 75 6e 69 2d 68 |informat|ik.uni-h|
|00000230| 61 6d 62 75 72 67 2e 64 | 65 3e 0a 0a 4d 69 63 68 |amburg.d|e>..Mich|
|00000240| 61 65 6c 20 4c 65 75 73 | 63 68 6e 65 72 20 77 72 |ael Leus|chner wr|
|00000250| 6f 74 65 3a 0a 3e 20 0a | 3e 20 57 65 20 68 61 76 |ote:.> .|> We hav|
|00000260| 65 20 61 20 70 72 6f 62 | 6c 65 6d 20 63 6f 6e 63 |e a prob|lem conc|
|00000270| 65 72 6e 69 6e 67 20 42 | 6f 72 6c 61 6e 64 20 43 |erning B|orland C|
|00000280| 2b 2b 20 34 2e 35 20 61 | 6e 64 20 68 6f 70 65 20 |++ 4.5 a|nd hope |
|00000290| 73 6f 6d 65 62 6f 64 79 | 20 77 69 6c 6c 20 62 65 |somebody| will be|
|000002a0| 20 61 62 6c 65 20 74 6f | 0a 3e 20 68 65 6c 70 20 | able to|.> help |
|000002b0| 75 73 2e 2e 2e 0a 3e 20 | 0a 3e 20 57 65 20 64 65 |us....> |.> We de|
|000002c0| 76 65 6c 6f 70 65 64 20 | 61 20 70 72 6f 67 72 61 |veloped |a progra|
|000002d0| 6d 20 69 6e 20 43 2b 2b | 20 77 69 74 68 20 74 68 |m in C++| with th|
|000002e0| 65 20 49 44 45 20 65 6e | 76 69 72 6f 6d 65 6e 74 |e IDE en|viroment|
|000002f0| 20 61 6e 64 20 74 68 65 | 20 41 70 70 20 45 78 70 | and the| App Exp|
|00000300| 65 72 74 20 61 6e 64 0a | 3e 20 68 61 76 65 20 6e |ert and.|> have n|
|00000310| 6f 20 70 72 6f 62 6c 65 | 6d 20 77 69 74 68 20 74 |o proble|m with t|
|00000320| 68 61 74 2e 20 4e 6f 77 | 20 77 65 20 77 61 6e 74 |hat. Now| we want|
|00000330| 20 74 6f 20 61 64 64 20 | 73 6f 6d 65 20 43 20 73 | to add |some C s|
|00000340| 6f 75 72 63 65 20 63 6f | 64 65 20 62 75 74 20 77 |ource co|de but w|
|00000350| 65 72 65 0a 3e 20 6e 6f | 74 20 73 75 63 63 65 73 |ere.> no|t succes|
|00000360| 73 66 75 6c 2e 20 49 74 | 20 73 65 65 6d 73 20 74 |sful. It| seems t|
|00000370| 68 61 74 20 74 68 65 20 | 63 2b 2b 20 63 6f 6d 70 |hat the |c++ comp|
|00000380| 69 6c 65 72 20 69 73 20 | 61 62 6c 65 20 74 6f 20 |iler is |able to |
|00000390| 63 6f 6d 70 69 6c 65 20 | 6f 75 72 0a 3e 20 41 4e |compile |our.> AN|
|000003a0| 53 49 20 63 20 73 6f 75 | 72 63 65 73 20 62 75 74 |SI c sou|rces but|
|000003b0| 20 6c 61 74 65 72 20 74 | 68 65 20 6c 69 6e 6b 65 | later t|he linke|
|000003c0| 72 20 63 61 6e 27 74 20 | 6d 61 6e 61 67 65 20 74 |r can't |manage t|
|000003d0| 6f 20 6c 69 6e 6b 20 74 | 68 65 20 6d 69 78 20 6f |o link t|he mix o|
|000003e0| 66 0a 3e 20 63 2b 2b 20 | 61 6e 64 20 63 20 74 6f |f.> c++ |and c to|
|000003f0| 67 65 74 68 65 72 2e 2e | 2e 0a 3e 20 0a 3e 20 44 |gether..|..> .> D|
|00000400| 6f 65 73 20 61 6e 79 6f | 6e 65 20 68 61 76 65 20 |oes anyo|ne have |
|00000410| 61 20 63 6c 75 65 3f 0a | 3e 20 49 73 20 74 68 65 |a clue?.|> Is the|
|00000420| 20 61 20 6b 6e 6f 77 6e | 20 70 72 6f 62 6c 65 6d | a known| problem|
|00000430| 20 28 61 6e 64 20 68 6f | 77 20 63 61 6e 20 79 6f | (and ho|w can yo|
|00000440| 75 20 73 6f 6c 76 65 20 | 69 74 29 20 3f 0a 3e 20 |u solve |it) ?.> |
|00000450| 0a 3e 20 2d 2d 4d 69 63 | 68 61 65 6c 0a 3e 20 55 |.> --Mic|hael.> U|
|00000460| 6e 69 76 65 72 73 69 74 | 79 20 6f 66 20 48 61 6d |niversit|y of Ham|
|00000470| 62 75 72 67 2c 20 47 65 | 72 6d 61 6e 79 20 0a 59 |burg, Ge|rmany .Y|
|00000480| 6f 75 72 20 70 72 6f 62 | 6c 65 6d 20 69 73 20 70 |our prob|lem is p|
|00000490| 72 6f 62 61 62 6c 79 20 | 6e 61 6d 65 20 6d 61 6e |robably |name man|
|000004a0| 67 6c 69 6e 67 2e 20 57 | 68 65 6e 20 74 68 65 20 |gling. W|hen the |
|000004b0| 63 6f 6d 70 69 6c 65 72 | 20 69 73 20 63 6f 6d 70 |compiler| is comp|
|000004c0| 69 6c 69 6e 67 20 0a 43 | 2b 2b 20 69 74 20 63 68 |iling .C|++ it ch|
|000004d0| 61 6e 67 65 73 20 74 68 | 65 20 6e 61 6d 65 73 20 |anges th|e names |
|000004e0| 6f 66 20 66 75 6e 63 74 | 69 6f 6e 20 73 6f 20 74 |of funct|ion so t|
|000004f0| 68 61 74 20 74 68 65 79 | 20 69 6e 63 6c 75 64 65 |hat they| include|
|00000500| 20 65 6e 63 6f 64 65 64 | 20 74 79 70 65 20 0a 69 | encoded| type .i|
|00000510| 6e 66 6f 72 6d 61 74 69 | 6f 6e 2e 20 49 74 20 64 |nformati|on. It d|
|00000520| 6f 65 73 20 6e 6f 74 20 | 64 6f 20 74 68 69 73 20 |oes not |do this |
|00000530| 77 68 65 6e 20 63 6f 6d | 70 69 6c 69 6e 67 20 43 |when com|piling C|
|00000540| 2e 20 0a 0a 54 6f 20 70 | 72 65 76 65 6e 74 20 6e |. ..To p|revent n|
|00000550| 61 6d 65 20 6d 61 6e 67 | 6c 69 6e 67 2c 20 74 65 |ame mang|ling, te|
|00000560| 6c 6c 20 74 68 65 20 63 | 6f 6d 70 69 6c 65 72 20 |ll the c|ompiler |
|00000570| 77 68 69 63 68 20 66 75 | 6e 63 74 69 6f 6e 73 20 |which fu|nctions |
|00000580| 61 72 65 20 77 72 69 74 | 74 65 6e 20 0a 69 6e 20 |are writ|ten .in |
|00000590| 43 20 62 79 20 73 75 72 | 72 6f 75 6e 64 69 6e 67 |C by sur|rounding|
|000005a0| 20 74 68 65 20 70 72 6f | 74 6f 74 79 70 65 73 20 | the pro|totypes |
|000005b0| 77 69 74 68 20 0a 20 20 | 20 65 78 74 65 72 6e 20 |with . | extern |
|000005c0| 22 43 22 20 7b 20 20 20 | 20 7d 3b 0a 61 73 20 69 |"C" { | };.as i|
|000005d0| 6e 0a 0a 65 78 74 65 72 | 6e 20 22 43 22 20 7b 0a |n..exter|n "C" {.|
|000005e0| 20 20 20 69 6e 74 20 43 | 66 75 6e 63 31 28 69 6e | int C|func1(in|
|000005f0| 74 20 69 29 3b 0a 20 20 | 20 66 6c 6f 61 74 20 43 |t i);. | float C|
|00000600| 66 75 6e 63 32 28 66 6c | 6f 61 74 20 61 29 3b 0a |func2(fl|oat a);.|
|00000610| 20 20 20 20 20 20 20 20 | 20 20 20 7d 3b 0a 0a 49 | | };..I|
|00000620| 66 20 79 6f 75 20 61 72 | 65 20 70 75 74 74 69 6e |f you ar|e puttin|
|00000630| 67 20 74 68 65 73 65 20 | 70 72 6f 74 6f 74 79 70 |g these |prototyp|
|00000640| 65 73 20 69 6e 20 61 20 | 68 65 61 64 65 72 20 74 |es in a |header t|
|00000650| 68 61 74 20 77 69 6c 6c | 20 69 6e 63 6c 75 64 65 |hat will| include|
|00000660| 64 20 62 79 20 43 20 0a | 63 6f 6d 70 69 6c 61 74 |d by C .|compilat|
|00000670| 69 6f 6e 73 20 79 6f 75 | 20 61 6c 73 6f 20 6e 65 |ions you| also ne|
|00000680| 65 64 20 74 6f 20 61 64 | 64 20 70 72 65 70 72 6f |ed to ad|d prepro|
|00000690| 63 65 73 73 6f 72 20 73 | 74 61 74 65 6d 65 6e 74 |cessor s|tatement|
|000006a0| 73 20 74 6f 20 70 72 65 | 76 65 6e 74 20 74 68 65 |s to pre|vent the|
|000006b0| 20 0a 43 20 63 6f 6d 70 | 69 6c 65 72 20 66 72 6f | .C comp|iler fro|
|000006c0| 6d 20 73 65 65 69 6e 67 | 20 74 68 65 6d 3a 0a 0a |m seeing| them:..|
|000006d0| 23 69 66 64 65 66 20 5f | 5f 63 70 6c 75 73 70 6c |#ifdef _|_cpluspl|
|000006e0| 75 73 0a 65 78 74 65 72 | 6e 20 22 43 22 20 7b 0a |us.exter|n "C" {.|
|000006f0| 23 65 6e 64 69 66 0a 20 | 20 20 69 6e 74 20 43 66 |#endif. | int Cf|
|00000700| 75 6e 63 31 28 69 6e 74 | 20 69 29 3b 0a 20 20 20 |unc1(int| i);. |
|00000710| 66 6c 6f 61 64 20 43 66 | 75 6e 63 32 28 66 6c 6f |fload Cf|unc2(flo|
|00000720| 61 74 20 61 29 3b 0a 23 | 69 66 64 65 66 20 5f 5f |at a);.#|ifdef __|
|00000730| 63 70 6c 75 73 70 6c 75 | 73 0a 20 20 20 20 20 20 |cplusplu|s. |
|00000740| 20 20 20 20 20 7d 3b 0a | 23 65 6e 64 69 66 0a | };.|#endif. |
+--------+-------------------------+-------------------------+--------+--------+